﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaskManagerMVVM.Model;

namespace TaskManagerMVVM.DataAccess
{
    public class EmployeeRepository
    {
        readonly List<Employee> _employees;

        public EmployeeRepository()
        {
            if (_employees == null)
            {
                _employees = new List<Employee>();
            }
            _employees.Add(Employee.CreateEmployee("Benny", "Zwanzger"));
        }

        public List<Employee> GetEmployee()
        {
            return new List<Employee>(_employees);
        }
    }
}
